﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormContent.aspx.cs" Inherits="StreetSmartAdmin.FormContent" %>
<%@ Register TagPrefix="CustUserCtrl" TagName="Header" Src="Header.ascx" %>
<%@ Register TagPrefix="CustUserCtrl" TagName="Footer" Src="Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" rel="stylesheet" href="style.css" />
</head>
<body>
    <form id="form1" runat="server">
<CustUserCtrl:Header id="Header" runat="server"></CustUserCtrl:Header>
<center><h1>Content Management</h1></center>
    <div>
    
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString='<%$ ConnectionStrings:SQLServer2005DBConnectionString %>'
                    SelectCommand="Select * FROM tblAccountStatus"
                    DeleteCommand = "DELETE from tblAccountStatus where AccountStatusID=@AccountStatusID"
                    UpdateCommand = "UPDATE tblAccountStatus SET AccountStatusName=@AccountStatusName where AccountStatusID=@AccountStatusID">
                    </asp:SqlDataSource>

                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString='<%$ ConnectionStrings:SQLServer2005DBConnectionString %>'
                    SelectCommand="Select * FROM tblPromotionCode"
                    DeleteCommand = "DELETE from tblPromotionCode where PromotionCodeID=@PromotionCodeID"
                    UpdateCommand = "UPDATE tblPromotionCode SET PromotionCodeName=@PromotionCodeName where PromotionCodeID=@PromotionCodeID">
                    </asp:SqlDataSource>

                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                    ConnectionString='<%$ ConnectionStrings:SQLServer2005DBConnectionString %>'
                    SelectCommand="Select * FROM SourceCodeRESI"
                    DeleteCommand = "DELETE from SourceCodeRESI where SourceCodeRESI_ID=@SourceCodeRESI_ID"
                    UpdateCommand = "UPDATE SourceCodeRESI SET SourceCodeRESI_Name=@SourceCodeRESI_Name where SourceCodeRESI_ID=@SourceCodeRESI_ID">
                    </asp:SqlDataSource>

                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                    ConnectionString='<%$ ConnectionStrings:SQLServer2005DBConnectionString %>'
                    SelectCommand="Select * FROM SourceCodeSME"
                    DeleteCommand = "DELETE from SourceCodeSME where SourceCodeSME_ID=@SourceCodeSME_ID"
                    UpdateCommand = "UPDATE SourceCodeSME SET SourceCodeSME_Name=@SourceCodeSME_Name where SourceCodeSME_ID=@SourceCodeSME_ID">
                    </asp:SqlDataSource>

                    <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
                    ConnectionString='<%$ ConnectionStrings:SQLServer2005DBConnectionString %>'
                    SelectCommand="Select * FROM ProductTypeRESI"
                    DeleteCommand = "DELETE from ProductTypeRESI where ProductTypeRESI_ID=@ProductTypeRESI_ID"
                    UpdateCommand = "UPDATE ProductTypeRESI SET ProductTypeRESI_Name=@ProductTypeRESI_Name where ProductTypeRESI_ID=@ProductTypeRESI_ID">
                    </asp:SqlDataSource>

                    <asp:SqlDataSource ID="SqlDataSource6" runat="server" 
                    ConnectionString='<%$ ConnectionStrings:SQLServer2005DBConnectionString %>'
                    SelectCommand="Select * FROM ProductTypeSME"
                    DeleteCommand = "DELETE from ProductTypeSME where ProductTypeSME_ID=@ProductTypeSME_ID"
                    UpdateCommand = "UPDATE ProductTypeSME SET ProductTypeSME_Name=@ProductTypeSME_Name where ProductTypeSME_ID=@ProductTypeSME_ID">
                    </asp:SqlDataSource>

                    <asp:SqlDataSource ID="SqlDataSource7" runat="server" 
                    ConnectionString='<%$ ConnectionStrings:SQLServer2005DBConnectionString %>'
                    SelectCommand="Select * FROM tblOperator"
                    DeleteCommand = "DELETE from tblOperator where OperatorID=@OperatorID"
                    UpdateCommand = "UPDATE tblOperator SET OperatorName=@OperatorName,Display=@Display where OperatorID=@OperatorID">
                    </asp:SqlDataSource>
    
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem Value="">Select Admin Type...</asp:ListItem>
                    <asp:ListItem Value="AccountStatus">Account Status</asp:ListItem>
                    <asp:ListItem Value="PromotionCode">Promotion Code</asp:ListItem>
                    <asp:ListItem Value="SourceCodeRESI">Source Code RESI</asp:ListItem>
                    <asp:ListItem Value="SourceCodeSME">Source Code SME</asp:ListItem>
                    <asp:ListItem Value="ProductTypeRESI">Product Type RESI</asp:ListItem>
                    <asp:ListItem Value="ProductTypeSME">Product Type SME</asp:ListItem>
                    <asp:ListItem Value="Operator">Operator</asp:ListItem>
                    </asp:DropDownList>
    
                    <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="View0" runat="server"/>

                        <asp:View ID="View1" runat="server">
                         <asp:GridView ID="GridView1" runat="server" CssClass="mGrid"
            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" 
            DataSourceID="SqlDataSource1" DataKeyNames="AccountStatusID"
            AllowPaging="True"
            EnableModelValidation="True" PageSize="20" AllowSorting="True">
                             <AlternatingRowStyle CssClass="alt" />
                             <Columns>
                                 <asp:CommandField ButtonType="Button" ShowDeleteButton="True" 
                                     ShowEditButton="True" />
                             </Columns>
                             <PagerStyle CssClass="pgr" />
                            </asp:GridView>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" Text="Add" onclick="Button1_Click" />
                        </asp:View>
                        <asp:View ID="View2" runat="server">
                         <asp:GridView ID="GridView2" runat="server" CssClass="mGrid"
            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" 
            DataSourceID="SqlDataSource2" DataKeyNames="PromotionCodeID"
            AllowPaging="True"
            EnableModelValidation="True" PageSize="20" AllowSorting="True">
                             <AlternatingRowStyle CssClass="alt" />
                             <Columns>
                                 <asp:CommandField ButtonType="Button" ShowDeleteButton="True" 
                                     ShowEditButton="True" />
                             </Columns>
                             <PagerStyle CssClass="pgr" />
                            </asp:GridView>
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        <asp:Button ID="Button2" runat="server" Text="Add" onclick="Button2_Click" />
                        </asp:View>
                        <asp:View ID="View3" runat="server">
                         <asp:GridView ID="GridView3" runat="server" CssClass="mGrid"
            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" 
            DataSourceID="SqlDataSource3" DataKeyNames="SourceCodeRESI_ID"
            AllowPaging="True"
            EnableModelValidation="True" PageSize="20" AllowSorting="True">
                             <AlternatingRowStyle CssClass="alt" />
                             <Columns>
                                 <asp:CommandField ButtonType="Button" ShowDeleteButton="True" 
                                     ShowEditButton="True" />
                             </Columns>
                             <PagerStyle CssClass="pgr" />
                            </asp:GridView>
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <asp:Button ID="Button3" runat="server" Text="Add" onclick="Button3_Click" />
                        </asp:View>
                        <asp:View ID="View4" runat="server">
                         <asp:GridView ID="GridView4" runat="server" CssClass="mGrid"
            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" 
            DataSourceID="SqlDataSource4" DataKeyNames="SourceCodeSME_ID"
            AllowPaging="True"
            EnableModelValidation="True" PageSize="20" AllowSorting="True">
                             <AlternatingRowStyle CssClass="alt" />
                             <Columns>
                                 <asp:CommandField ButtonType="Button" ShowDeleteButton="True" 
                                     ShowEditButton="True" />
                             </Columns>
                             <PagerStyle CssClass="pgr" />
                            </asp:GridView>
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        <asp:Button ID="Button4" runat="server" Text="Add" onclick="Button4_Click" />
                        </asp:View>
                        <asp:View ID="View5" runat="server">
                        <asp:GridView ID="GridView5" runat="server" CssClass="mGrid"
            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" 
            DataSourceID="SqlDataSource5" DataKeyNames="ProductTypeRESI_ID"
            AllowPaging="True"
            EnableModelValidation="True" PageSize="20" AllowSorting="True">
                            <AlternatingRowStyle CssClass="alt" />
                            <Columns>
                                <asp:CommandField ButtonType="Button" ShowDeleteButton="True" 
                                    ShowEditButton="True" />
                            </Columns>
                            <PagerStyle CssClass="pgr" />
                            </asp:GridView>
            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                        <asp:Button ID="Button5" runat="server" Text="Add" onclick="Button5_Click" />
                        </asp:View>
                        <asp:View ID="View6" runat="server">
                        <asp:GridView ID="GridView6" runat="server" CssClass="mGrid"
            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" 
            DataSourceID="SqlDataSource6" DataKeyNames="ProductTypeSME_ID"
            AllowPaging="True"
            EnableModelValidation="True" PageSize="20" AllowSorting="True">
                            <AlternatingRowStyle CssClass="alt" />
                            <Columns>
                                <asp:CommandField ButtonType="Button" ShowDeleteButton="True" 
                                    ShowEditButton="True" />
                            </Columns>
                            <PagerStyle CssClass="pgr" />
                            </asp:GridView>
            <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                        <asp:Button ID="Button6" runat="server" Text="Add" onclick="Button6_Click" />
                        </asp:View>

                        <asp:View ID="View7" runat="server">
                        <asp:GridView ID="GridView7" runat="server" CssClass="mGrid"
            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" 
            DataSourceID="SqlDataSource7" DataKeyNames="OperatorID"
            AllowPaging="True"
            EnableModelValidation="True" PageSize="20" AllowSorting="True">
                            <AlternatingRowStyle CssClass="alt" />
                            <Columns>
                                <asp:CommandField ButtonType="Button" ShowDeleteButton="True" 
                                    ShowEditButton="True" />
                            </Columns>
                            <PagerStyle CssClass="pgr" />
                            </asp:GridView>
            <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        <asp:Button ID="Button7" runat="server" Text="Add" onclick="Button7_Click" />
                        </asp:View>
                    </asp:MultiView>
    
           

           

           

           

            

            
    </div>
    </form>
</body>
</html>
